package com.dnjn.mes.biz.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum DataType {
    BIT0("BIT0", 1),
    BIT1("BIT1", 1),
    BIT2("BIT2", 1),
    BIT3("BIT3", 1),
    BIT4("BIT4", 1),
    BIT5("BIT5", 1),
    BIT6("BIT6", 1),
    BIT7("BIT7", 1),

    INT8("INT8", 1),
    INT16("INT16", 2),
    INT32("INT32", 4),
    INT64("INT64", 8),
    FLOAT32("FLOAT32", 2),
    FLOAT64("FLOAT64", 4); //?todo INT32
    @JsonValue
    @EnumValue
    String code;
    int quantity;//byte
}
